/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package javaex;

/**
 *
 * @author Marilena
 */
public class WhileTest {   
    static boolean condition() {
        double app = 0.00;
        app = Math.random() ;
        System.out.println("\n" + app + "000 \n");
        boolean result = app < 0.85;
        System.out.println(result + ", ");
        return result;
    }
    public static void main(String[] args){
        while(condition())
        System.out.println("sono dentro 'while'");
        System.out.println("sono uscito dal 'while'");
    }
}
    

